package top.wilsonlv.jaguar.cloud.upms.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.wilsonlv.jaguar.cloud.upms.sdk.enums.ClientType;
import top.wilsonlv.jaguar.commons.web.base.BaseVO;

/**
 * @author lvws
 * @since 2021/8/6
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class OAuthClientVO extends BaseVO {

    @ApiModelProperty("客户端ID")
    private String clientId;

    @ApiModelProperty("客户端密钥")
    private String clientSecret;

    @ApiModelProperty(value = "是否第三方")
    private Boolean thirdParty;

    @ApiModelProperty("权限范围")
    private String scope;

    @ApiModelProperty("资源ID")
    private String resourceIds;

    @ApiModelProperty("授权类型")
    private String authorizedGrantTypes;

    @ApiModelProperty("重定向URI")
    private String registeredRedirectUri;

    @ApiModelProperty("自动授权")
    private String autoApproveScopes;

    @ApiModelProperty("accessToken有效期")
    private Integer accessTokenValiditySeconds;

    @ApiModelProperty("refreshToken有效期")
    private Integer refreshTokenValiditySeconds;

    @ApiModelProperty("客户端类型")
    private ClientType clientType;

    @ApiModelProperty("是否启用")
    private Boolean enable;


}
